export function getQueryString(str){
    let url = window.location.toString();
    let arrObj = url.split("?");
    if (arrObj.length > 1) {
      let arrPara = arrObj[1].split("&");
      let arr;
      for (let i = 0; i < arrPara.length; i++) {
        arr = arrPara[i].split("=");
        if (arr != null && arr[0] === str) {
          return arr[1];
        }
      }
      return "";
    } else {
      return "";
    }
}

export default {
  getQueryString
}
